<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>netLink C++ 11: include/Data.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">netLink C++ 11
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">Data.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment">    netLink: c++ 11 networking library</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment">    Copyright (C) 2013-2023 Alexander Meißner</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment"></span> </div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment">    This program is free software: you can redistribute it and/or modify</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment">    it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment">    the Free Software Foundation, either version 3 of the License, or</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment">    (at your option) any later version.</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="comment"></span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="comment">    This program is distributed in the hope that it will be useful,</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="comment">    GNU General Public License for more details.</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="comment"></span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="comment">    You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="comment">    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="comment">*/</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#include &quot;Header.h&quot;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="keyword">namespace </span>MsgPack {</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="class_msg_pack_1_1_data.html">   26</a></span>    <span class="keyword">class </span><a class="code hl_class" href="class_msg_pack_1_1_data.html">Data</a> : <span class="keyword">public</span> <a class="code hl_class" href="class_msg_pack_1_1_header.html">Header</a> {</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span>        <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_msg_pack_1_1_serializer.html">Serializer</a>;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span>        <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_msg_pack_1_1_deserializer.html">Deserializer</a>;</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>        <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="class_msg_pack_1_1_data.html#a0be7d089e11c705284d6ecd00ce1a07c">   30</a></span>        std::unique_ptr&lt;char[]&gt; <a class="code hl_variable" href="class_msg_pack_1_1_data.html#a0be7d089e11c705284d6ecd00ce1a07c">data</a>; </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span>        std::streamsize <a class="code hl_function" href="class_msg_pack_1_1_data.html#ad18c41a501dd542b88dddeb4eda1c8bb">serialize</a>(int64_t&amp; pos, std::basic_streambuf&lt;char&gt;* streamBuffer, std::streamsize bytes);</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span>        std::streamsize <a class="code hl_function" href="class_msg_pack_1_1_data.html#ad3864402c4045cb0fa0553a6e6d6578d">deserialize</a>(int64_t&amp; pos, std::basic_streambuf&lt;char&gt;* streamBuffer, std::streamsize bytes);</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span>    };</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="class_msg_pack_1_1_binary.html">   36</a></span>    <span class="keyword">class </span><a class="code hl_class" href="class_msg_pack_1_1_binary.html">Binary</a> : <span class="keyword">public</span> <a class="code hl_class" href="class_msg_pack_1_1_data.html">Data</a> {</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>        <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_msg_pack_1_1_serializer.html">Serializer</a>;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>        <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_msg_pack_1_1_deserializer.html">Deserializer</a>;</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>        <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>        <a class="code hl_class" href="class_msg_pack_1_1_binary.html">Binary</a>() { }</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>        int64_t <a class="code hl_function" href="class_msg_pack_1_1_binary.html#ae3102c1e7ff6bf52ebf552909487f6d5">getEndPos</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span>        int64_t <a class="code hl_function" href="class_msg_pack_1_1_binary.html#ad65dc5ccfa94089081fad1c7d4afb900">getHeaderLength</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>        <span class="keyword">public</span>:</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>        <a class="code hl_class" href="class_msg_pack_1_1_binary.html">Binary</a>(uint32_t len, <span class="keyword">const</span> <span class="keywordtype">void</span>* <a class="code hl_variable" href="class_msg_pack_1_1_data.html#a0be7d089e11c705284d6ecd00ce1a07c">data</a>);</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>        std::unique_ptr&lt;Element&gt; <a class="code hl_function" href="class_msg_pack_1_1_binary.html#ad24c316bbca47ed564848cb9d4e1bccb">copy</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>        <span class="keywordtype">void</span> <a class="code hl_function" href="class_msg_pack_1_1_binary.html#a627c3628fbc802c00b7e60538258c50d">toJSON</a>(std::ostream&amp; stream) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>        <span class="keywordtype">char</span>* <a class="code hl_function" href="class_msg_pack_1_1_binary.html#ac88c44cffdfeb698135822a6281cf0ef">getData</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span>    };</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="class_msg_pack_1_1_extended.html">   53</a></span>    <span class="keyword">class </span><a class="code hl_class" href="class_msg_pack_1_1_extended.html">Extended</a> : <span class="keyword">public</span> <a class="code hl_class" href="class_msg_pack_1_1_data.html">Data</a> {</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span>        <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_msg_pack_1_1_serializer.html">Serializer</a>;</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span>        <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_msg_pack_1_1_deserializer.html">Deserializer</a>;</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>        <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>        <a class="code hl_class" href="class_msg_pack_1_1_extended.html">Extended</a>() { }</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>        int64_t <a class="code hl_function" href="class_msg_pack_1_1_extended.html#ad4acdb7035754892287d636972947a5b">getEndPos</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>        int64_t <a class="code hl_function" href="class_msg_pack_1_1_extended.html#a623ca013529d4c72f5d1937d00187ad9">getHeaderLength</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>        <span class="keyword">public</span>:</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>        <a class="code hl_class" href="class_msg_pack_1_1_extended.html">Extended</a>(uint8_t type, uint32_t len, <span class="keyword">const</span> <span class="keywordtype">void</span>* <a class="code hl_variable" href="class_msg_pack_1_1_data.html#a0be7d089e11c705284d6ecd00ce1a07c">data</a>);</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>        std::unique_ptr&lt;Element&gt; <a class="code hl_function" href="class_msg_pack_1_1_extended.html#a0e3c54f4993ea3984f8dc26e71e42d64">copy</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>        <span class="keywordtype">void</span> <a class="code hl_function" href="class_msg_pack_1_1_extended.html#a8bb09009766f81d21ad35b89bdad6a7c">toJSON</a>(std::ostream&amp; stream) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>        uint8_t <a class="code hl_function" href="class_msg_pack_1_1_extended.html#a1b6cd3c05d6e67e63e4b51d992048a19">getDataType</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>        <span class="keywordtype">char</span>* <a class="code hl_function" href="class_msg_pack_1_1_extended.html#a1d1b437bcae6ccd0164b0f613debbfcb">getData</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>        uint32_t <a class="code hl_function" href="class_msg_pack_1_1_extended.html#acbc9b98d13e7e7f67d5b055ac091e073">getLength</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>    };</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span> </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="class_msg_pack_1_1_string.html">   73</a></span>    <span class="keyword">class </span><a class="code hl_class" href="class_msg_pack_1_1_string.html">String</a> : <span class="keyword">public</span> <a class="code hl_class" href="class_msg_pack_1_1_data.html">Data</a> {</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>        <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_msg_pack_1_1_serializer.html">Serializer</a>;</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>        <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_msg_pack_1_1_deserializer.html">Deserializer</a>;</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>        <span class="keywordtype">void</span> init(uint32_t len, <span class="keyword">const</span> <span class="keywordtype">void</span>* str);</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span>        <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>        <a class="code hl_class" href="class_msg_pack_1_1_string.html">String</a>() { }</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>        int64_t <a class="code hl_function" href="class_msg_pack_1_1_string.html#a652b1e898e069c6780c603e16920097e">getEndPos</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>        int64_t <a class="code hl_function" href="class_msg_pack_1_1_string.html#a78ff2f9a6050644e3b2c78ae734dbe0e">getHeaderLength</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span>        <span class="keyword">public</span>:</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>        <a class="code hl_class" href="class_msg_pack_1_1_string.html">String</a>(uint32_t len, <span class="keyword">const</span> <span class="keywordtype">void</span>* str);</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>        <a class="code hl_class" href="class_msg_pack_1_1_string.html">String</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str);</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>        <a class="code hl_class" href="class_msg_pack_1_1_string.html">String</a>(<span class="keyword">const</span> std::string&amp; str);</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>        std::unique_ptr&lt;Element&gt; <a class="code hl_function" href="class_msg_pack_1_1_string.html#aa02cc7e9d375062ea9a31f2fa07ecd6d">copy</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>        <span class="keywordtype">void</span> <a class="code hl_function" href="class_msg_pack_1_1_string.html#ae48418fcd7cd3d4fcbc1244e227072f7">toJSON</a>(std::ostream&amp; stream) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span>        <span class="keywordtype">char</span>* <a class="code hl_function" href="class_msg_pack_1_1_string.html#a089a5ec5ba6b739c3e454dcfe614bbf0">getData</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>        std::string <a class="code hl_function" href="class_msg_pack_1_1_string.html#aded81feb5240317114127c6026d8f5c4">stdString</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>    };</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span> </div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>};</div>
<div class="ttc" id="aclass_msg_pack_1_1_binary_html"><div class="ttname"><a href="class_msg_pack_1_1_binary.html">MsgPack::Binary</a></div><div class="ttdoc">MsgPack::Data to represent binary/raw data elements.</div><div class="ttdef"><b>Definition</b> Data.h:36</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_binary_html_a627c3628fbc802c00b7e60538258c50d"><div class="ttname"><a href="class_msg_pack_1_1_binary.html#a627c3628fbc802c00b7e60538258c50d">MsgPack::Binary::toJSON</a></div><div class="ttdeci">void toJSON(std::ostream &amp;stream) const</div><div class="ttdoc">Writes a human readable JSON-like string into the given stream.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:333</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_binary_html_ac88c44cffdfeb698135822a6281cf0ef"><div class="ttname"><a href="class_msg_pack_1_1_binary.html#ac88c44cffdfeb698135822a6281cf0ef">MsgPack::Binary::getData</a></div><div class="ttdeci">char * getData() const</div><div class="ttdoc">Returns a pointer to the binary data.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:341</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_binary_html_ad24c316bbca47ed564848cb9d4e1bccb"><div class="ttname"><a href="class_msg_pack_1_1_binary.html#ad24c316bbca47ed564848cb9d4e1bccb">MsgPack::Binary::copy</a></div><div class="ttdeci">std::unique_ptr&lt; Element &gt; copy() const</div><div class="ttdoc">Creates a deep copy of this element.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:326</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_binary_html_ad65dc5ccfa94089081fad1c7d4afb900"><div class="ttname"><a href="class_msg_pack_1_1_binary.html#ad65dc5ccfa94089081fad1c7d4afb900">MsgPack::Binary::getHeaderLength</a></div><div class="ttdeci">int64_t getHeaderLength() const</div><div class="ttdoc">Returns the size of the header in bytes.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:312</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_binary_html_ae3102c1e7ff6bf52ebf552909487f6d5"><div class="ttname"><a href="class_msg_pack_1_1_binary.html#ae3102c1e7ff6bf52ebf552909487f6d5">MsgPack::Binary::getEndPos</a></div><div class="ttdeci">int64_t getEndPos() const</div><div class="ttdoc">Returns the first invalid (de)serializer position.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:298</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_data_html"><div class="ttname"><a href="class_msg_pack_1_1_data.html">MsgPack::Data</a></div><div class="ttdoc">MsgPack::Header with a additional buffer used as body.</div><div class="ttdef"><b>Definition</b> Data.h:26</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_data_html_a0be7d089e11c705284d6ecd00ce1a07c"><div class="ttname"><a href="class_msg_pack_1_1_data.html#a0be7d089e11c705284d6ecd00ce1a07c">MsgPack::Data::data</a></div><div class="ttdeci">std::unique_ptr&lt; char[]&gt; data</div><div class="ttdoc">The raw data buffer.</div><div class="ttdef"><b>Definition</b> Data.h:30</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_data_html_ad18c41a501dd542b88dddeb4eda1c8bb"><div class="ttname"><a href="class_msg_pack_1_1_data.html#ad18c41a501dd542b88dddeb4eda1c8bb">MsgPack::Data::serialize</a></div><div class="ttdeci">std::streamsize serialize(int64_t &amp;pos, std::basic_streambuf&lt; char &gt; *streamBuffer, std::streamsize bytes)</div><div class="ttdoc">Serializes bytes at the given serializer position pos into streamBuffer.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:246</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_data_html_ad3864402c4045cb0fa0553a6e6d6578d"><div class="ttname"><a href="class_msg_pack_1_1_data.html#ad3864402c4045cb0fa0553a6e6d6578d">MsgPack::Data::deserialize</a></div><div class="ttdeci">std::streamsize deserialize(int64_t &amp;pos, std::basic_streambuf&lt; char &gt; *streamBuffer, std::streamsize bytes)</div><div class="ttdoc">Deserializes bytes at the given deserializer position pos from streamBuffer.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:259</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_deserializer_html"><div class="ttname"><a href="class_msg_pack_1_1_deserializer.html">MsgPack::Deserializer</a></div><div class="ttdoc">Used to deserialize elements from a std::streambuf.</div><div class="ttdef"><b>Definition</b> StreamManager.h:71</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_extended_html"><div class="ttname"><a href="class_msg_pack_1_1_extended.html">MsgPack::Extended</a></div><div class="ttdoc">MsgPack::Data to represent extended elements.</div><div class="ttdef"><b>Definition</b> Data.h:53</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_extended_html_a0e3c54f4993ea3984f8dc26e71e42d64"><div class="ttname"><a href="class_msg_pack_1_1_extended.html#a0e3c54f4993ea3984f8dc26e71e42d64">MsgPack::Extended::copy</a></div><div class="ttdeci">std::unique_ptr&lt; Element &gt; copy() const</div><div class="ttdoc">Creates a deep copy of this element.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:427</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_extended_html_a1b6cd3c05d6e67e63e4b51d992048a19"><div class="ttname"><a href="class_msg_pack_1_1_extended.html#a1b6cd3c05d6e67e63e4b51d992048a19">MsgPack::Extended::getDataType</a></div><div class="ttdeci">uint8_t getDataType() const</div><div class="ttdoc">Returns the user defined data type.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:443</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_extended_html_a1d1b437bcae6ccd0164b0f613debbfcb"><div class="ttname"><a href="class_msg_pack_1_1_extended.html#a1d1b437bcae6ccd0164b0f613debbfcb">MsgPack::Extended::getData</a></div><div class="ttdeci">char * getData() const</div><div class="ttdoc">Returns a pointer to the binary data.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:447</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_extended_html_a623ca013529d4c72f5d1937d00187ad9"><div class="ttname"><a href="class_msg_pack_1_1_extended.html#a623ca013529d4c72f5d1937d00187ad9">MsgPack::Extended::getHeaderLength</a></div><div class="ttdeci">int64_t getHeaderLength() const</div><div class="ttdoc">Returns the size of the header in bytes.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:407</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_extended_html_a8bb09009766f81d21ad35b89bdad6a7c"><div class="ttname"><a href="class_msg_pack_1_1_extended.html#a8bb09009766f81d21ad35b89bdad6a7c">MsgPack::Extended::toJSON</a></div><div class="ttdeci">void toJSON(std::ostream &amp;stream) const</div><div class="ttdoc">Writes a human readable JSON-like string into the given stream.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:434</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_extended_html_acbc9b98d13e7e7f67d5b055ac091e073"><div class="ttname"><a href="class_msg_pack_1_1_extended.html#acbc9b98d13e7e7f67d5b055ac091e073">MsgPack::Extended::getLength</a></div><div class="ttdeci">uint32_t getLength() const</div><div class="ttdoc">Returns the content length in bytes.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:451</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_extended_html_ad4acdb7035754892287d636972947a5b"><div class="ttname"><a href="class_msg_pack_1_1_extended.html#ad4acdb7035754892287d636972947a5b">MsgPack::Extended::getEndPos</a></div><div class="ttdeci">int64_t getEndPos() const</div><div class="ttdoc">Returns the first invalid (de)serializer position.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:383</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_header_html"><div class="ttname"><a href="class_msg_pack_1_1_header.html">MsgPack::Header</a></div><div class="ttdoc">MsgPack::Element to represent the header of a dynamical length element.</div><div class="ttdef"><b>Definition</b> Header.h:26</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_serializer_html"><div class="ttname"><a href="class_msg_pack_1_1_serializer.html">MsgPack::Serializer</a></div><div class="ttdoc">Used to serialize elements into a std::streambuf.</div><div class="ttdef"><b>Definition</b> StreamManager.h:37</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_string_html"><div class="ttname"><a href="class_msg_pack_1_1_string.html">MsgPack::String</a></div><div class="ttdoc">MsgPack::Data to represent strings.</div><div class="ttdef"><b>Definition</b> Data.h:73</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_string_html_a089a5ec5ba6b739c3e454dcfe614bbf0"><div class="ttname"><a href="class_msg_pack_1_1_string.html#a089a5ec5ba6b739c3e454dcfe614bbf0">MsgPack::String::getData</a></div><div class="ttdeci">char * getData() const</div><div class="ttdoc">Returns a pointer to the binary data.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:536</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_string_html_a652b1e898e069c6780c603e16920097e"><div class="ttname"><a href="class_msg_pack_1_1_string.html#a652b1e898e069c6780c603e16920097e">MsgPack::String::getEndPos</a></div><div class="ttdeci">int64_t getEndPos() const</div><div class="ttdoc">Returns the first invalid (de)serializer position.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:489</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_string_html_a78ff2f9a6050644e3b2c78ae734dbe0e"><div class="ttname"><a href="class_msg_pack_1_1_string.html#a78ff2f9a6050644e3b2c78ae734dbe0e">MsgPack::String::getHeaderLength</a></div><div class="ttdeci">int64_t getHeaderLength() const</div><div class="ttdoc">Returns the size of the header in bytes.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:506</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_string_html_aa02cc7e9d375062ea9a31f2fa07ecd6d"><div class="ttname"><a href="class_msg_pack_1_1_string.html#aa02cc7e9d375062ea9a31f2fa07ecd6d">MsgPack::String::copy</a></div><div class="ttdeci">std::unique_ptr&lt; Element &gt; copy() const</div><div class="ttdoc">Creates a deep copy of this element.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:523</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_string_html_aded81feb5240317114127c6026d8f5c4"><div class="ttname"><a href="class_msg_pack_1_1_string.html#aded81feb5240317114127c6026d8f5c4">MsgPack::String::stdString</a></div><div class="ttdeci">std::string stdString() const</div><div class="ttdoc">Returns a std::string represenation of the content.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:540</div></div>
<div class="ttc" id="aclass_msg_pack_1_1_string_html_ae48418fcd7cd3d4fcbc1244e227072f7"><div class="ttname"><a href="class_msg_pack_1_1_string.html#ae48418fcd7cd3d4fcbc1244e227072f7">MsgPack::String::toJSON</a></div><div class="ttdeci">void toJSON(std::ostream &amp;stream) const</div><div class="ttdoc">Writes a human readable JSON-like string into the given stream.</div><div class="ttdef"><b>Definition</b> MsgPack.cpp:530</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7
</small></address>
</body>
</html>
